<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var wage = [2000, 1500, 4000, 1000, 1200, 1400];
    var newWage = [];
    for (var i = 0; i < wage.length; i++) {
      if (wage[i] < 2000) {
        // newWage[newWage.length] = wage[i];
        newWage.push(wage[i]);
      }
    }
    console.log(newWage);

  </script>
</head>

<body>

</body>

</html>